<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class BillRoute
{
    public function map(Router $router)
    {

        $router->group(['namespace' => 'Bill\Controllers', 'prefix'=>'bill'], function ($router) {

            //首页
            $router->any('index', 'IndexController@index');
            $router->any('set-money', 'IndexController@setMoney');
            //分类
            $router->any('cate-son-list', 'CategoryController@son');
            $router->any('cate-list', 'CategoryController@lists');
            $router->any('cate-edit', 'CategoryController@edit');
            $router->any('cate-add', 'CategoryController@edit');
            $router->any('cate-detail', 'CategoryController@detail');
            $router->any('cate-del', 'CategoryController@del');
            //账户
            $router->any('account-son-list', 'AccountController@son');
            $router->any('account-list', 'AccountController@lists');
            $router->any('account-edit', 'AccountController@edit');
            $router->any('account-add', 'AccountController@edit');
            $router->any('account-detail', 'AccountController@detail');
            $router->any('account-del', 'AccountController@del');
            //往来单位
            $router->any('buyer-list', 'BuyerController@lists');
            $router->any('buyer-edit', 'BuyerController@edit');
            $router->any('buyer-add', 'BuyerController@edit');
            $router->any('buyer-detail', 'BuyerController@detail');
            $router->any('buyer-del', 'BuyerController@del');
            //模板
            $router->any('template-list', 'TemplateController@lists');
            $router->any('template-edit', 'TemplateController@edit');
            $router->any('template-add', 'TemplateController@edit');
            $router->any('template-detail', 'TemplateController@detail');
            $router->any('template-del', 'TemplateController@del');
            //记一笔账[账单流水]
            $router->any('log-list', 'LogController@lists');
            $router->any('log-edit', 'LogController@edit');
            $router->any('log-add', 'LogController@edit');
            $router->any('log-type-list', 'LogController@typeList');
            $router->any('log-nearest-list', 'LogController@nearest');
            //客户发货单
            $router->any('customer-list', 'CustomerController@lists');
            $router->any('customer-bill-list', 'CustomerController@billList');
            $router->any('customer-money-list', 'CustomerController@moneyList');
            $router->any('customer-order-list', 'CustomerController@orderList');
            //计件工资
            $router->any('wage-list', 'WageController@lists');
            $router->any('wage-money-list', 'WageController@moneyList');
            $router->any('wage-order-list', 'WageController@orderList');
            //供应商的账单
            $router->any('seller-list', 'SellerController@lists');
            $router->any('seller-bill-list', 'SellerController@billList');
            $router->any('seller-money-list', 'SellerController@moneyList');

            /** 交货单 zhuyujun 20181226 **/
//            //交货单列表
//            $router->any('getDeliveryOrderList', 'DeliveryOrderController@getDeliveryOrderList');
//            //创建交货单
//            $router->any('createDeliveryOrder', 'DeliveryOrderController@createDeliveryOrder');
            //销售确认发货
            $router->any('sellerComfirmSend', 'IndexController@sellerComfirmSend');
            //发货单详情
            $router->any('getWarehouseSendDetail', 'IndexController@getWarehouseSendDetail');
            //收货修改数量&扣金额
            $router->any('warehouseSendReceive', 'IndexController@warehouseSendReceive');

            //客户核销-流水核销
            $router->any('customerWriteOffWater', 'IndexController@customerWriteOffWater');
            //客户核销-账单核销
            $router->any('customerWriteOffBill', 'IndexController@customerWriteOffBill');
            //财务销账
            $router->any('financeWriteOff', 'IndexController@financeWriteOff');

            //核销单详情
            $router->any('getWriteOffDetail', 'IndexController@getWriteOffDetail');


        });
    }
}